#!/usr/bin/env python3
"""
简单分析 setuptools.build_meta
"""

try:
    import setuptools.build_meta as build_meta
    
    print("setuptools.build_meta 分析")
    print("=" * 40)
    print(f"模块位置: {build_meta.__file__}")
    print()
    
    print("PEP 517 钩子函数:")
    print("-" * 20)
    
    hooks = [
        "build_wheel",
        "build_sdist", 
        "get_requires_for_build_wheel",
        "get_requires_for_build_sdist",
        "prepare_metadata_for_build_wheel",
        "build_editable",
        "get_requires_for_build_editable"
    ]
    
    for hook in hooks:
        if hasattr(build_meta, hook):
            print(f"  ✅ {hook}")
        else:
            print(f"  ❌ {hook}")
    
    print()
    print("所有公共成员:")
    print("-" * 15)
    for name in sorted(dir(build_meta)):
        if not name.startswith('_'):
            print(f"  {name}")
            
except ImportError as e:
    print(f"导入失败: {e}")
except Exception as e:
    print(f"其他错误: {e}") 